#ifndef LIST_H
#define LIST_H

const int TSIZE = 20;

struct film
{
    char title[TSIZE];
    int rating;
};

typedef film Item;

class List
{
    private:
    enum{MAX = 6};
    Item item[MAX];
    int number;

    public:
    List();
    bool add(Item& a);
    bool isempty();
    bool isfull();
    void visit(void (*pf)(Item&));
};

void PrintFunction(Item& a);

#endif